/* ============================================================
   Connect-Wise — Brand Stylesheet
   Deep navy + bright orange. Professional / tech feel.
   ============================================================ */

:root {
  /* Brand palette */
  --navy-900: #081427;
  --navy-800: #0b1f3a;
  --navy-700: #102a56;
  --navy-600: #163a6e;
  --navy-500: #1f4a85;
  --orange: #ff7a1a;
  --orange-dark: #e8650a;
  --orange-soft: #fff1e6;

  /* Neutrals */
  --ink: #16202e;
  --muted: #5a6678;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-tint: #eef3f9;

  /* System */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(11, 31, 58, .08);
  --shadow: 0 10px 30px rgba(11, 31, 58, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, .16);
  --maxw: 1180px;
  --header-h: 72px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; color: var(--navy-800); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-dark);
  margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600;
  font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255,122,26,.35); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-700); background: #fff; }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--orange-soft); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.text-link { color: var(--orange-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { gap: 10px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy-800); font-size: 1.18rem; letter-spacing: -.02em; }
.brand .logo { width: 34px; height: 34px; }
.logo-img { height: 54px; width: auto; display: block; }
.site-footer .logo-img { height: 46px; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .22em; color: var(--orange-dark); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-weight: 500; color: var(--navy-700); font-size: .95rem; transition: background .15s ease, color .15s ease; }
.nav-links a:hover { background: var(--bg-soft); color: var(--navy-800); }
.nav-links a.active { color: var(--orange-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(255,122,26,.18), transparent 55%),
              linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #eaf0fb;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #c4d2ea; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 48px; }
.hero-badges .b { display: flex; flex-direction: column; }
.hero-badges .b strong { font-size: 1.9rem; color: #fff; font-weight: 800; }
.hero-badges .b span { font-size: .85rem; color: #9fb2d4; }

/* ---------- Section head ---------- */
.sec-head { max-width: 720px; margin-bottom: 44px; }
.center .sec-head { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6e0ee; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-dark); margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

.service-card .num { font-size: .8rem; font-weight: 700; color: var(--orange-dark); letter-spacing: .1em; }
.service-card h3 { margin-top: 6px; }

/* feature list */
.flist li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.flist li:last-child { border-bottom: 0; }
.flist .tick { color: var(--orange-dark); font-weight: 800; flex: 0 0 auto; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 26px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--navy-800); }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split .visual {
  border-radius: var(--radius); min-height: 360px; padding: 30px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.split .visual::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,122,26,.4), transparent 70%);
}
.checklist li { display: flex; gap: 12px; margin-bottom: 12px; }
.checklist .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: 0 0 auto; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 2.4rem; font-weight: 800; color: var(--orange-soft);
  -webkit-text-stroke: 1.5px var(--orange); display: block; margin-bottom: 8px;
}
.step h3 { font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: #fff; border-radius: 20px; padding: 56px 44px; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4d2ea; max-width: 60ch; margin: 0 auto 26px; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #eaf0fb; padding: 70px 0 76px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c4d2ea; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: #9fb2d4; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Breadcrumb detail page layout ---------- */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 96px; }
.sidebar .panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.sidebar .panel h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.sidebar .panel a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--navy-700); font-weight: 500; font-size: .95rem; }
.sidebar .panel a:hover { background: #fff; }
.sidebar .panel a.active { background: #fff; color: var(--orange-dark); box-shadow: var(--shadow-sm); }

.prose h2 { margin-top: 36px; }
.prose p { color: var(--muted); }
.prose ul.ticks li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--ink); }
.prose ul.ticks .tick { color: var(--orange-dark); font-weight: 800; flex: 0 0 auto; }

/* ---------- Pricing / plan mini ---------- */
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--orange); box-shadow: var(--shadow); }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--navy-800); }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy-800); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; background: #eafaf1; border: 1px solid #b7e6c9; color: #1c7a44; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.form-success.show { display: block; }

/* contact info cards */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.info-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-800); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.info-card h4 { margin: 0 0 4px; font-size: 1.05rem; }
.info-card p { color: var(--muted); margin: 0; font-size: .94rem; }
.info-card p a { color: inherit; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c4d2ea; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer p { color: #9fb2d4; font-size: .94rem; max-width: 34ch; }
.footer-col h5 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col a { display: block; color: #9fb2d4; padding: 6px 0; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: #8698ba; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .steps { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 14px 22px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero .container { padding-top: 70px; padding-bottom: 76px; }
}
