/* ============================================================
   Knotica Solutions — Enterprise IT & Technology Consulting
   ============================================================ */

:root {
  --navy:        #0b2545;
  --navy-deep:   #071a33;
  --ink:         #10233f;
  --slate:       #45607e;
  --muted:       #6b7f97;
  --orange:      #f2900d;
  --orange-dark: #d97b04;
  --sky:         #eaf3fb;
  --sky-2:       #d8ebfa;
  --line:        #d9e6f2;
  --white:       #ffffff;
  --card:        #ffffff;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 24px 60px -28px rgba(11, 37, 69, 0.35);
  --shadow-sm:   0 10px 30px -18px rgba(11, 37, 69, 0.35);
  --maxw:        1200px;
  --font:        'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #eef6fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

a { color: inherit; text-decoration: none; }

/* Lucide-style icon defaults */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------------- Fixed background illustration ---------------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  will-change: transform;
}
.page-bg::after {
  /* soften the illustration so text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(238,246,252,.96) 30%, rgba(238,246,252,.55) 62%, rgba(238,246,252,.30) 100%),
    linear-gradient(180deg, rgba(238,246,252,.30), rgba(238,246,252,.75) 85%);
}

/* ---------------- Scroll progress ---------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  z-index: 200;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 248, 253, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(11,37,69,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-weight: 800;
  letter-spacing: .01em;
  font-size: 1.02rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.site-nav a {
  font-weight: 500;
  color: var(--slate);
  font-size: .95rem;
  transition: color .2s;
}
.site-nav a:hover { color: var(--navy); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700 !important;
  color: var(--navy) !important;
  font-size: 1rem;
}
.nav-cta .icon { width: 16px; height: 16px; color: var(--orange); transition: transform .2s; }
.nav-cta:hover .icon { transform: translateX(3px); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--slate);
  margin: 0 0 22px;
}
.eyebrow .tag { color: var(--orange-dark); }
.eyebrow .divider { color: var(--line); }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 34px;
}
.hero-title .accent { color: var(--orange); }
.hero-statement { margin-bottom: 20px; max-width: 560px; }
.hero-statement .label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--orange-dark);
  margin: 0 0 6px;
}
.hero-statement p { margin: 0; color: var(--slate); font-size: .97rem; }
.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
}
.hero-checklist li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
}
.hero-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

/* Contact card */
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 2.4vw, 32px);
  position: sticky;
  top: 92px;
}
.contact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-head h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}
.contact-head p { margin: 0; font-size: .85rem; color: var(--muted); }
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--orange-dark);
  background: #fdf1dd;
  border: 1px solid #f6dcae;
  padding: 5px 9px;
  border-radius: 7px;
}
.secure-badge .icon { width: 13px; height: 13px; }

.contact-info {
  list-style: none;
  padding: 16px 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 11px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
}
.contact-info .icon { width: 17px; height: 17px; color: var(--orange); }
.contact-info a:hover { color: var(--orange-dark); }

.contact-form { display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 144, 13, .16);
}
.form-note {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin: 4px 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn .icon { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(242, 144, 13, .7);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ---------------- Section base ---------------- */
.section {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0;
}
.section-eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--orange-dark);
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 16px;
  max-width: 780px;
}
.section-title .thin { font-weight: 400; color: var(--slate); }
.section-lead {
  font-size: 1.02rem;
  color: var(--slate);
  max-width: 640px;
  margin: 0 0 44px;
}

/* ---------------- Capabilities ---------------- */
.capabilities {
  background:
    radial-gradient(900px 460px at 90% 0%, rgba(216,235,250,.6), transparent 60%),
    linear-gradient(180deg, rgba(251,253,255,.92), rgba(244,249,253,.92));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(2px);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cap-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .25s, border-color .25s;
}
.cap-card:hover {
  transform: translateY(-5px);
  border-color: #c6dcf0;
  box-shadow: var(--shadow);
}
.cap-card--wide { grid-column: span 3; }
.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), #dceefc);
  color: var(--navy);
  margin-bottom: 18px;
  transition: background .25s, color .25s;
}
.cap-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.cap-card:hover .cap-icon { background: var(--orange); color: #fff; }
.cap-kicker {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--navy);
  margin-bottom: 12px;
}
.cap-card p { margin: 0; color: var(--slate); font-size: .96rem; }
.cap-arrow {
  position: absolute;
  top: 30px; right: 28px;
  width: 20px; height: 20px;
  color: var(--sky-2);
  transition: color .25s, transform .25s;
}
.cap-card:hover .cap-arrow { color: var(--orange); transform: translate(2px, -2px); }

/* ---------------- Approach / Values ---------------- */
.approach {
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(240,247,252,.65));
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.value-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px 32px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s, box-shadow .25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--orange);
}
.value-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--sky-2);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.value-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--navy);
}
.value-card p { margin: 0; color: var(--slate); font-size: .97rem; }

/* ---------------- Team ---------------- */
.team {
  background:
    radial-gradient(900px 500px at 8% 0%, rgba(216,235,250,.6), transparent 60%),
    linear-gradient(180deg, rgba(244,249,253,.9), rgba(251,253,255,.92));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(2px);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .25s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.avatar {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), #163a63);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.team-head h3 {
  margin: 0 0 3px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-head h3 .linkedin { width: 16px; height: 16px; color: var(--orange); }
.role {
  margin: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--orange-dark);
}
.bio { margin: 0 0 18px; font-size: .9rem; color: var(--slate); }
.highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 9px;
}
.highlights li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .86rem;
  color: var(--navy);
  font-weight: 500;
}
.highlights .icon { width: 15px; height: 15px; color: var(--orange); margin-top: 3px; }
.pill-group { margin-top: auto; }
.pill-group + .pill-group { margin-top: 14px; }
.pill-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.pill-label .icon { width: 13px; height: 13px; color: var(--slate); }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pills span {
  font-size: .76rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--sky);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}
.pills--muted span { background: #f5f7fa; color: var(--slate); }
.team-footer {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.team-footer p { margin: 0; color: var(--slate); font-size: .96rem; max-width: 720px; }
.team-footer .btn { flex-shrink: 0; }

/* ---------------- FAQ ---------------- */
.faq { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(240,247,252,.7)); }
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--orange);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.faq-toggle::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.faq-toggle::after  { left: 9px; top: 2px; width: 2px; height: 16px; }
.faq-item[open] .faq-toggle::after { transform: rotate(90deg); opacity: 0; }
.faq-body {
  padding: 0 24px 22px;
  animation: faqIn .35s ease;
}
.faq-body p { margin: 0; color: var(--slate); font-size: .96rem; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: #cfe0f0;
  padding: 52px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.brand--footer { color: #fff; }
.brand--footer .brand-name { color: #fff; }
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: #cfe0f0;
}
.footer-contact .icon { width: 16px; height: 16px; color: var(--orange); }
.footer-contact a:hover { color: #fff; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.footer-nav a {
  color: #a9c3dc;
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; }
.copyright { margin: 0; font-size: .82rem; color: #7f9bb8; }

/* ============================================================
   Scroll animations
   ============================================================ */

/* Reveal on scroll (staggered by JS via --d) */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Animated connector "threads" between sections (the knot motif) */
.thread-connector {
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  top: -45px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.thread-connector .thread-path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .55;
}
.thread-connector .thread-node {
  fill: var(--orange);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .contact-card { position: static; order: -1; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card--wide { grid-column: span 2; }
  .team-grid { grid-template-columns: 1fr; }
  .page-bg { background-position: 75% center; }
}
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-checklist { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card--wide { grid-column: span 1; }
  .values-grid { grid-template-columns: 1fr; }
  .team-footer { flex-direction: column; align-items: flex-start; }
  .page-bg::after {
    background:
      linear-gradient(180deg, rgba(238,246,252,.88), rgba(238,246,252,.94));
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .page-bg { transform: none !important; }
  .thread-connector { display: none; }
}
