/* Indrix website styles.
   Brand tokens match PinPage (indigo, violet, cyan + Plus Jakarta Sans),
   so the company site and its products read as one family. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --pri: #4f46e5;
  --vio: #7c3aed;
  --cy: #06b6d4;
  --wa: #25d366;
  --pri-text: #4f46e5;
  --ink: #0f1222;
  --muted: #5d6479;
  --bg: #ffffff;
  --soft: #f4f5fb;
  --card: #ffffff;
  --line: #e6e8f0;
  --head: rgba(255, 255, 255, .85);
  --grid: rgba(15, 18, 34, .05);
  --shadow: rgba(15, 18, 34, .35);
  --tint: rgba(79, 70, 229, .08);
  --r: 20px;
  --grad: linear-gradient(135deg, var(--pri), var(--vio) 55%, var(--cy));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pri-text: #a5b4fc;
    --ink: #eef0fa;
    --muted: #9aa1b8;
    --bg: #0b0c16;
    --soft: #10121e;
    --card: #171a2b;
    --line: #272b41;
    --head: rgba(11, 12, 22, .82);
    --grid: rgba(255, 255, 255, .045);
    --shadow: rgba(0, 0, 0, .7);
    --tint: rgba(165, 180, 252, .1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --pri-text: #a5b4fc;
  --ink: #eef0fa;
  --muted: #9aa1b8;
  --bg: #0b0c16;
  --soft: #10121e;
  --card: #171a2b;
  --line: #272b41;
  --head: rgba(11, 12, 22, .82);
  --grid: rgba(255, 255, 255, .045);
  --shadow: rgba(0, 0, 0, .7);
  --tint: rgba(165, 180, 252, .1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .25s, color .25s;
}
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.grad-text {
  background: linear-gradient(135deg, var(--pri-text), var(--cy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:focus-visible { outline: 3px solid var(--cy); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-pri {
  background: linear-gradient(135deg, var(--pri), var(--vio));
  color: #fff; box-shadow: 0 12px 30px -10px rgba(79, 70, 229, .6);
}
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .7); }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--pri-text); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--pri-text); text-decoration: none;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--head); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
}
.logo svg { width: 34px; height: 34px; flex: none; }
.links { display: flex; gap: 26px; align-items: center; }
.links a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); }
.links a:not(.btn):hover { color: var(--ink); }
.links .btn { padding: 10px 18px; white-space: nowrap; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
}
.icon-btn svg { width: 18px; height: 18px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
}
.menu { display: none; }
@media (max-width: 860px) {
  .menu { display: grid; }
  .links {
    display: none;
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px var(--shadow);
  }
  .links.open { display: flex; }
  .links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .links .btn { margin-top: 16px; padding: 14px 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 84px 0 72px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(6, 182, 212, .17), transparent),
    radial-gradient(800px 440px at 0% 0%, rgba(79, 70, 229, .15), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-weight: 600; font-size: .85rem; color: var(--muted);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .18); }
.pill b { color: var(--pri-text); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1.08; letter-spacing: -.025em; margin: 18px 0; text-wrap: balance; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 10px 20px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); font-size: .92rem; font-weight: 600; list-style: none; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--wa); flex: none; }

/* Hero board: three examples of what Indrix builds */
.board {
  border-radius: 20px; border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 40px 80px -34px var(--shadow); overflow: hidden;
}
.board-bar { display: flex; gap: 6px; align-items: center; padding: 11px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.board-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.board-bar span { margin-left: 10px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.board-body {
  padding: 22px 20px 24px; display: grid; gap: 14px;
  background-image: radial-gradient(var(--grid) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.lane { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 16px; }
.lane-k { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lane-k i { width: 8px; height: 8px; border-radius: 3px; background: var(--c, var(--pri)); }
.flow { display: flex; align-items: center; }
.node {
  flex: none; padding: 9px 12px; border-radius: 11px;
  background: var(--soft); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 700; line-height: 1.25; text-align: center;
}
.node.done { background: var(--tint); border-color: transparent; color: var(--pri-text); box-shadow: inset 0 0 0 1.5px var(--pri-text); }
.wire {
  flex: 1; min-width: 14px; height: 2px; margin: 0 4px;
  background: repeating-linear-gradient(90deg, var(--pri-text) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; opacity: .55;
  animation: wire 1.2s linear infinite;
}
@keyframes wire { to { background-position: 24px 0; } }
@media (max-width: 960px) {
  .hero { padding: 56px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 440px) {
  .board-body { padding: 16px 12px 18px; }
  .lane { padding: 12px 10px 14px; }
  .node { padding: 8px 8px; font-size: .7rem; }
  .wire { margin: 0 2px; }
}

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.alt { background: var(--soft); }
.head { max-width: 720px; margin-bottom: 48px; }
.k { display: inline-flex; align-items: center; gap: 10px; color: var(--pri-text); font-weight: 800; letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; }
.k::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); line-height: 1.14; letter-spacing: -.02em; margin: 12px 0; text-wrap: balance; }
.head p { color: var(--muted); font-size: 1.06rem; }
h3 { letter-spacing: -.01em; }
@media (max-width: 700px) { section { padding: 68px 0; } .head { margin-bottom: 36px; } }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center;
  padding: 34px; border-radius: 24px; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px var(--shadow);
}
.tag { display: inline-block; font-size: .74rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--pri), var(--vio)); }
.tag.quiet { background: var(--tint); color: var(--pri-text); }
.product h3 { font-size: 1.9rem; margin: 14px 0 2px; }
.product .tagline { font-weight: 700; margin-bottom: 10px; }
.product p { color: var(--muted); }
.ticks { list-style: none; margin: 16px 0 22px; }
.ticks li { position: relative; padding: 5px 0 5px 26px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-4.8'/%3E%3C/svg%3E") center/16px no-repeat;
  transform: translateY(-25%);
}
/* mini browser preview of a PinPage site */
.browser { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 60px -30px var(--shadow); }
.browser .board-bar span { background: var(--card); padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line); }
.site-hero { padding: 28px 22px; background: linear-gradient(135deg, #2b1a10, #6b4226); color: #fff; }
.site-hero small { opacity: .8; letter-spacing: .14em; font-size: .62rem; font-weight: 700; }
.site-hero strong { display: block; font-size: 1.3rem; margin: 6px 0 12px; line-height: 1.2; }
.site-btns { display: flex; gap: 8px; }
.site-btns b { font-size: .72rem; padding: 7px 12px; border-radius: 999px; background: var(--wa); }
.site-btns b + b { background: rgba(255, 255, 255, .16); }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.site-cards div { height: 52px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.next {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 34px 30px; border-radius: 24px;
  border: 2px dashed var(--line); background: transparent;
}
.next h3 { font-size: 1.35rem; margin: 14px 0 8px; }
.next p { color: var(--muted); margin-bottom: 20px; }
.next .arrow-link { margin-top: auto; }
@media (max-width: 1020px) { .products { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .product { grid-template-columns: 1fr; padding: 26px 22px; } .next { padding: 26px 22px; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.svc:hover { transform: translateY(-3px); border-color: var(--pri-text); }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; }
.svc h3 { font-size: 1.14rem; margin-bottom: 6px; }
.svc p { color: var(--muted); font-size: .97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; list-style: none; }
.chips li { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.alt .chips li { background: var(--bg); }
.svc.ask { background: var(--grad); border: 0; color: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.svc.ask p { color: rgba(255, 255, 255, .9); margin-bottom: 20px; }
.svc.ask .btn { margin-top: auto; background: #fff; color: #0f1222; padding: 12px 20px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.work { list-style: none; border-top: 1px solid var(--line); }
.work li { display: grid; grid-template-columns: 70px 1.1fr 1.5fr auto; gap: 24px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.work .n { font-size: 1rem; font-weight: 800; color: var(--pri-text); padding-top: 4px; }
.work h3 { font-size: 1.35rem; line-height: 1.25; }
.work .meta { color: var(--muted); font-size: .86rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }
.work p { color: var(--muted); }
.work .arrow-link { white-space: nowrap; padding-top: 3px; }
@media (max-width: 900px) {
  .work li { grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 26px 0; }
  .work li > :nth-child(n+3) { grid-column: 2; }
  .work p { margin-top: 6px; }
  .work .arrow-link { margin-top: 8px; }
}

/* ---------- How we work ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; }
.steps li { counter-increment: step; padding: 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--grad); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.about .head { margin-bottom: 26px; }
.about-copy p { color: var(--muted); font-size: 1.06rem; margin-bottom: 14px; max-width: 600px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 34px; list-style: none; }
.values li { padding-left: 16px; border-left: 2px solid var(--pri-text); }
.values b { display: block; margin-bottom: 2px; }
.values span { color: var(--muted); font-size: .95rem; }
.founder { border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 60px -40px var(--shadow); }
.founder-top { height: 84px; background: var(--grad); }
.founder-av {
  width: 76px; height: 76px; border-radius: 50%; margin: -38px 0 0 28px;
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--vio), var(--cy)); border: 4px solid var(--card);
}
.founder-body { padding: 14px 28px 28px; }
.founder-body h3 { font-size: 1.4rem; margin-top: 4px; }
.founder-body .role { color: var(--pri-text); font-weight: 700; font-size: .92rem; margin-bottom: 12px; }
.founder-body p { color: var(--muted); margin-bottom: 16px; }
.founder-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.founder-links a { display: inline-block; font-size: .86rem; font-weight: 700; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); }
.founder-links a:hover { border-color: var(--pri-text); color: var(--pri-text); }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 40px 80px -50px var(--shadow); }
.contact-side { padding: 44px 40px; background: var(--grad); color: #fff; }
.contact-side .k { color: #fff; }
.contact-side .k::before { background: #fff; }
.contact-side p { opacity: .92; margin-bottom: 26px; }
.ways { list-style: none; display: grid; gap: 12px; }
.ways a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .13); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.ways a:hover { background: rgba(255, 255, 255, .22); }
.ways svg { width: 20px; height: 20px; flex: none; }
.ways small { display: block; font-weight: 600; opacity: .8; font-size: .76rem; }
.contact form { padding: 44px 40px; display: grid; gap: 16px; align-content: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 700; font-size: .9rem; }
label span { color: var(--muted); font-weight: 600; }
label input, label select, label textarea { display: block; margin-top: 6px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri-text); box-shadow: 0 0 0 4px var(--tint); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.form-note { color: var(--muted); font-size: .86rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact-side, .contact form { padding: 32px 24px; } }
@media (max-width: 520px) { .ways a { font-size: .92rem; } .row2 { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
footer.site { padding: 44px 0; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 18px 30px; flex-wrap: wrap; }
.foot .logo { font-size: 1.15rem; color: var(--ink); }
.foot .logo svg { width: 28px; height: 28px; }
.foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--ink); }
.foot-bottom { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.page h2 { font-size: 1.35rem; margin: 34px 0 8px; }
.page p, .page li { color: var(--muted); }
.page p { margin-bottom: 12px; }
.page ul { margin: 0 0 12px 20px; }
.page a { color: var(--pri-text); font-weight: 600; }
.page .btn-pri { color: #fff; }
.center { text-align: center; }
.big404 { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }

/* ---------- Scroll reveal (only when JavaScript is on) ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .wire { animation: none; }
  body, .btn, .svc { transition: none; }
}
